package com.itheima.homework3;

public class Test {
    public static void main(String[] args) {
        Employee e1 = new JavaTeacher();//java老师对象
        Employee e2 = new UITeacher();//UI老师对象
        e1.setName("地雷");
        e1.setAge(32);
        e1.setGender('男');
        e2.setName("大肠");
        e2.setAge(27);
        e2.setGender('女');
        e1.work();
        e2.work();
        ((UITeacher) e2).art();


    }
}
